<%@page import="com.yymmarket.forum.util.DateUtil,com.yymmarket.forum.admin.AdminService,com.yymmarket.forum.util.LevelUtil,com.yymmarket.forum.cache.ForumCache,com.yymmarket.forum.admin.AdminBean,com.yymmarket.forum.util.SessionUtil,com.yymmarket.framework.PagingBean,com.yymmarket.forum.util.BaseUtil,com.yymmarket.util.StringUtil,com.yymmarket.forum.bbs.ContentBean,java.util.List,com.yymmarket.forum.bbs.ContentService,com.yymmarket.forum.bbs.BBSService,com.yymmarket.framework.WebAction"%><%@ 
page contentType="text/vnd.wap.wml;charset=utf-8"%><%
response.setHeader("Cache-Control","no-cache");
WebAction webAction = new WebAction(request,response);
int id = webAction.getParameterInt("id");

int p = webAction.getParameterInt("p");

int userId = webAction.getParameterInt("userId");

BBSService bbs = BBSService.getInstance();
//Integer uid = SessionUtil.getSessionUserId(request);
List<AdminBean> list = AdminService.getInstance().getAdminByLevelDesc(LevelUtil.TYPE_BBS,id,LevelUtil.BBS_LEVEL_NO_POST);
int size = list.size();

Integer uid = SessionUtil.getSessionUserId(request);
AdminBean adminBean = ForumCache.getAdminBean(LevelUtil.TYPE_BBS,id,uid);
%><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card title="<%=ForumCache.getBBSBean(id).getTitle()+"禁封名单" %>">
<p><%
if(userId == 0) {
if(size > 0) {
int i = 0;
for(AdminBean bean : list) {
	i++;
%><%=i%>.<a href="<%=bean.getUserId() %>"><%=StringUtil.toWml(ForumCache.getUser(bean.getUserId()).getUserName()) %></a>(<%=bean.getAdminLevelString() %>|剩<%=DateUtil.calTime(bean.getEndTime()) %>)<br/><%
}
} else {
%>禁封列表为空<br/><%} } else {
	AdminBean adminUser = ForumCache.getAdminBean(LevelUtil.TYPE_BBS,id,userId);
	if(adminUser.getUserId()==0||adminUser.getAdminLevel()>=LevelUtil.BBS_LEVEL_FUBANZHU) {
%>没有该禁封用户<br/><%} else {
%>用户ID:<%=adminUser.getUserId() %><br/>
用户名:<a href="../user/getUser.jsp?id=<%=adminUser.getUserId() %>"><%=StringUtil.toWml(adminUser.getUserName()) %></a><br/>
类型:<%=adminUser.getAdminLevelString() %><br/>
理由:<%=StringUtil.toWml(adminUser.getDescription()) %><br/>
剩余时间:<%=adminBean.getEndTime() %><br/>
禁封人:<a href="../user/getUser.jsp?id=<%=adminBean.getActionUserId() %>"></a><%=StringUtil.toWml(adminBean.getActionUserName()) %><br/>
<a href="deForbid.jsp?id=<%=id %>&amp;userId=<%=adminBean.getUserId()%>">解禁</a><%}
}
%><input name="userId" value=""/><br/>
<anchor>查询禁封ID<go href="forbid.jsp?id=<%=id %>" method="post">
<postfield name="userId" value="$userId" />
</go></anchor><br/><%
if(adminBean.getAdminLevel()>=LevelUtil.BBS_LEVEL_FUBANZHU){
%><a href="forbidUser.jsp?id=<%=id %>">添加禁封用户</a><br/><%
}
%><a href="forum.jsp?id=<%=id %>">&lt;返回<%=bbs.getBBSBeanById(id).getTitle() %></a><br/>
<a href="index.jsp">&lt;&lt;返回论坛</a><br/>
<%=BaseUtil.bottom(request,response) %></p>
</card>
</wml>